"""
+ 加
- 减
* 乘
/ 除
// 取整除
% 取余
** 指数
"""

a = 10
b = 20

print(a + b)
print(a - b)
print(a * b)
print(a / b)
print(a // b)
print(a % b)
print(a ** b)

"""
赋值运算符
= 赋值运算符
复合赋值运算符
+= 加法赋值运算符
-= 减法赋值运算符
*= 乘法赋值运算符
/= 除法赋值运算符
%= 取模赋值运算符
**= 幂赋值运算符
//= 取整余赋值运算符
"""

c = 1
print("c = 1:", c)
c += 1
print("c += 1:", c)
c -= 1
print("c -= 1:", c)
c *= 4
print("c *= 1:", c)
c /= 2
print("c /= 1:", c)

c = 3
c %= 2
print("c %= 1:", c)
c **= 2
print("c **= 1:", c)

c = 9
c //= 2
print("c //= 1:", c)
